package com.czkt.controller;

import com.czkt.client.SysUserClient;
import com.czkt.core.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class OrderController {


//    @Autowired
//    RestTemplate restTemplate;

    @Autowired
    SysUserClient sysUserClient;

    @RequestMapping("/confirm")
    public AjaxResult confirm(){

        AjaxResult userList = sysUserClient.getUserList();

//        restTemplate.getForObject("",Object.class);


        return userList;
    }
}
